package com.test.factory;

import com.test.pojo.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/13 10:47
 * @Modified By:
 */
public class MyFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() throws Exception {
        return new User();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
